#!/bin/sh
# -*- coding: utf-8 -*-
#Filename:   CheckServerAll.sh
#Author:     Yaoyi
#Email:      yaoyi@zzvcom.com
#Date:       2019-05-26 16:23:25
#Desc:       

#set var
NAME=`dirname $0`
dir=`pwd`
tmp_log=$1
log_dir=${tmp_log:=/usr/local/etc/install_check/chklog/}

#import source
source ${dir}/../source/common/functions.sh

function InstallCheckfile() {
	#\cp $dir/conf/*.list ${log_dir}/../
	\cp $dir/conf/check_1.ini ${log_dir}/../check.conf
	#cd ${log_dir}/../
	cd ${dir}/conf
	sh install_check.sh "${log_dir}"
	#rm -rf  ${log_dir}/../*.list
}

mkdir -p ${log_dir}
InstallCheckfile

